/*
 */
package org.hook.showcase.base.clone;

/**
 * @author suwuqiang 2011-12-28
 */
public class NoneCloneCase {

	public void changeObject(NoneCloneObject o) {
		o.name = "name is vivian.";
	}

	public void changeInt(int i) {
		i = i + 1;
	}

	public static void main(String[] args) {
		NoneCloneCase test = new NoneCloneCase();
		NoneCloneObject o = new NoneCloneObject();
		int i = 10;
		System.out.println("before change:" + o.name);
		System.out.println("before change:" + i);
		test.changeObject(o);
		test.changeInt(i);
		System.out.println("after change:" + o.name);
		System.out.println("after change:" + i);
	}
}

class NoneCloneObject {
	String name = "name is alex.";
}
